package com.crud.generator.template;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 前端模板中的字段描述。
 */
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FrontendColumnDescriptor {

    private String javaFieldName;

    private String columnName;

    private String javaType;

    private String comment;

    private Boolean nullable;

    private Boolean primaryKey;

    private Boolean autoIncrement;

    private boolean stringType;

    private boolean textType;

    private boolean dateType;

    private boolean numberType;

    private boolean decimalType;

    private boolean largeTextType;

    private Integer length;

    private Integer scale;

    private String defaultValue;
}
